package com.pxmeta.party.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@TableName("kt_gift")
@ApiModel(value = "礼物对象", description = "礼物表")
@Data
public class Gift implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty(value = "类型,1经典,2互动")
    private Integer type;

    @ApiModelProperty(value = "是否是宝箱")
    private Boolean isTreasure;

    @ApiModelProperty(value = "h5详情链接")
    private String h5Url;

    @ApiModelProperty(value = "弹框标题")
    private String popTitle;

    @ApiModelProperty("价格")
    private Integer price;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty("状态，1可用 -1不可用")
    private Integer status;

    @ApiModelProperty("素材链接")
    private String materialUrl;

    @TableField(exist = false)
    @ApiModelProperty("中奖概率")
    private Double probability;

    @TableField(exist = false)
    @ApiModelProperty(value = "每期数量")
    private Integer count;

    @TableField(exist = false)
    @ApiModelProperty(value = "剩余数量")
    private Integer remainingQuantity;

    @TableField(exist = false)
    @ApiModelProperty(value = "抽中触发条件")
    private Integer conditionCount;


    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
